import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const frontApi = {
  // 添加牡丹花
  addPeony: (data) => {
    return postAxios('/front/add', data);
  },
  // 分页查询牡丹花
  queryPeony: (data) => {
    return postAxios('/front/page/query', data);
  },
  // 批量删除牡丹花
  batchDeletePeony: (idList) => {
    return postAxios('/front/deleteByIds', idList);
  },
  // 修改牡丹花
  updatePeony: (data) => {
    return postAxios('/front/update', data);
  },
  // 导出全部
  exportAll: (data) => {
    return postDownloadAxios('/front/export/all', data);
  },
  // 批量导出
  batchExport: (idList) => {
    return postDownloadAxios('/front/export/batch', idList);
  }
};
